<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>酒店后台管理系统</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/user.css" />
<jsp:include page="../commonCss.jsp" />
</head>
<body>
	<div id="mform" style="height: 360px;">
		<div class="div1">欢迎注册酒店后台管理系统</div>
		<form action="${pageContext.request.contextPath}/user/addUserInfo" method="post">
			<label>用户名：</label>
			<input type="text" name="username" placeholder="请输入用户名" class="input1" required="required"></input>
			<br/>
			<label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
			<input type="password" name="password" placeholder="请输入密码" class="input1" required="required"></input>
			<br/>
			<label style="margin-left: -10px;">类&nbsp;&nbsp;&nbsp;&nbsp;型：</label>
			<select class="input1" name="type" required="required">
				<option value="0">普通</option>
				<option value="1">管理员</option>
			</select>
			<br/>
			<label style="margin-left: -10px;">注册时间：</label>
			<input type="text" name="create_time" class="input1" id="time" class="layui-disabled" disabled required="required"></input>
			<br/>
			<input type="submit" value="注册" class="btn"></input>
		</form>
	</div>
</body>
<script type="text/javascript">
	 function datetime() {
		 var now = new Date();
		 var s = now.getSeconds();
		 if(s <= 9){
			 s = "0" + now.getSeconds();
		 }
		 if(now.getMinutes() <= 9){
			 document.getElementById("time").value = now.getFullYear() + "-"
			 + (now.getMonth() + 1) + "-" + now.getDate();
			 document.getElementById("time").value += " " + now.getHours() + ":"
			 + "0" + now.getMinutes() + ":" + s;
		 }else{
			 document.getElementById("time").value = now.getFullYear() + "-"
			 + (now.getMonth() + 1) + "-" + now.getDate();
			 document.getElementById("time").value += " " + now.getHours() + ":"
			 + now.getMinutes() + ":" + s;
		 }
	 }
	 window.setInterval("datetime()", 1000);
</script>
</html>